<{include file="db:`$mydirname`_header.html"}>

<{include file="db:`$mydirname`_category_tree.html"}>
<div style="margin:16px 0;"><{$lang_thereare}></div>




<{if $links|@count > 0}>

  <div id="sort_block">
    <{$order_html}>
    <span class='sort_text'><{$lang_cursortedby}></span>
  </div>

  <{if $navinfo && $nav}>
    <div style="float:left;"><{$navinfo}></div>
    <div class="links_navigation pagenavi"><{$nav}></div>
  <{/if}>



  <!-- Start new link loop -->
  <div style="width:100%;" id="links_index_wrap">
  <{foreach item=link from=$links key=count name=i}>
    <{if $display_type}>
      <div style="float:left;text-align:center;padding:0 0 6px 0;width:<{if ($count+1) is div by $table_cols}><{$col_width-1}><{else}><{$col_width}><{/if}>%;">
        <a href="<{my_make_uri option=$uri_options mydirname=$mydirname method=item p_key1=lid p_val1=$link.lid}>" title="<{$link.title}>">

          <{if $screen_shot==1}>
            <{if $link.adult}>
              <img src="<{$myurl}>/images/warning128.gif" width="128" height="128" />
            <{elseif ! $link.url}>
              <img src="<{$myurl}>/images/mobileonly128.gif" width="128" height="128" />
            <{else}>
              <{if $link.capture}>
                <img src="<{$cache_url}>/<{$link.lid}>.jpg" width="128" height="128" />
              <{else}>
                <{if $screenshotservice}>
                  <img src="<{$screenshotservice}><{$link.url}>" width="128" height="128" />
                <{else}>
                  <img src="<{$myurl}>/images/cancel128.gif" width="128" height="128" />
                <{/if}>
              <{/if}>
            <{/if}>
            <br />
          <{/if}>

          <{$link.title|links_substr:0:20}>
          <br />
          (<{$link.date|formatTimestamp:"m"}>)
        </a> 
      </div>
      <{if ($count+1) is div by $table_cols || $smarty.foreach.i.last}>
        <br style="clear:both;">
      <{/if}>
    <{else}>
      <{include file="db:`$mydirname`_link.html"}>
    <{/if}>
  <{/foreach}>
  </div>
  <!-- End new link loop -->


  <{if $nav}>
    <div class="links_navigation pagenavi"><{$nav}></div>
  <{/if}>

<{/if}>


<{include file="db:`$mydirname`_footer.html"}>
